﻿using Microsoft.Extensions.DependencyInjection;
using Spire.Xls.Core.Spreadsheet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace KalevaAalto
{
    public static partial class Static
    {
        public static async Task<T[]> GetAarryAsync<T>(this IAsyncEnumerable<T> values)
        {
            var result = new List<T>();
            await foreach (var item in values)
            {
                result.Add(item);
            }
            return result.ToArray();
        }

        

        






        







    }
}
